<?php
/**
 * Created by PhpStorm.
 * User: waw
 * Date: 2019/6/19
 * Time: 9:53
 */
function sqlQuery($sql)
{
//    创建连接
    $conn=new mysqli('127.0.0.1','root','','yemaijiu','3306');

    mysqli_query($conn,'set names utf8');
    $result=$conn->query($sql);
    $conn->close();
    return  $result;
}